// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_fk.p_b;

import com.nnee.p_g.cls_b;

// Referenced classes of package com.nnee.p_fk.b:
//            d, c

public abstract class cls_e
    implements Comparable, Runnable
{

    protected cls_e(int i1)
    {
        y = System.currentTimeMillis();
        b_ = i1;
        b = a();
        u = 1;
        v = true;
    }

    /**
     * @deprecated Method a is deprecated
     */

    private static int a()
    {
        
        int i1;
        if(x >= 32767)
            x = 0;
        i1 = 1 + x;
        x = i1;
       
        return i1;
      
    }

    public int a(cls_e e1)
    {
        byte byte0;
        int i1;
        int j1;
        byte0 = -1;
        i1 = 0xff & u;
        j1 = 0xff & e1.u;
        if(i1 <= j1) {
        	if(i1 < j1)
                byte0 = 1;
            else
            if(y >= e1.y)
                if(y > e1.y)
                    byte0 = 1;
                else
                    byte0 = 0;
        }

        return byte0;

    }

    public void a(int i1, Exception exception)
    {
    }

    public void a(cls_c c1)
    {
        c_ = c1;
    }

    public void a(cls_d d1)
    {
        d_ = d1;
    }

    public void a(boolean flag)
    {
        v = flag;
    }

    public void b(int i1)
    {
        u = i1;
    }

    public abstract void c();

    public void c(int i1)
    {
        w = i1;
    }

    public void c(int i1, Object obj)
    {
        if(d_ != null)
            d_.a(i1, b_, b, obj);
    }

    public int compareTo(Object obj)
    {
        return a((cls_e)obj);
    }

    public void d(int i1, Object obj)
    {
        if(d_ != null)
        {
            com.nnee.p_g.cls_b.d("notify err", (new StringBuilder()).append("t-").append(b_).append("c-").append(i1).toString());
            d_.b(i1, b_, b, obj);
        }
    }

    public void e()
    {
        c = true;
    }

    protected void e(int i1, int j1, int k1, Object obj)
    {
        if(d_ != null)
            d_.a(i1, j1, k1, obj);
    }

    protected void f(int i1, int j1, int k1, Object obj)
    {
        if(d_ != null)
        {
            com.nnee.p_g.cls_b.d("notify err", (new StringBuilder()).append("t-").append(b_).append("c-").append(i1).toString());
            d_.b(i1, j1, k1, obj);
        }
    }

    public cls_c g()
    {
        return c_;
    }

    public void h()
    {
        if(c_ != null)
            c_.b(this);
    }

    public cls_d i()
    {
        return d_;
    }

    public int j()
    {
        return u;
    }

    public boolean k()
    {
        return v;
    }

    public int l()
    {
        return w;
    }

    public int m()
    {
        return b;
    }

    public int n()
    {
        return b_;
    }

    public boolean o()
    {
        return c;
    }

    public void run()
    {
        try
        {
            if(!o())
                c();
        }
        catch(Exception exception)
        {
            exception.printStackTrace();
            e();
            a(10007, exception);
        }
        c_.b(this);
    }

    private static final boolean a = true;
    static int x = 0;
    private int b;
    int b_;
    private boolean c;
    cls_c c_;
    cls_d d_;
    int u;
    boolean v;
    int w;
    long y;

}
